projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4650603
)
(Fmove_to_column): Go after invis chars at the goal column.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 28 Jun 1996 18:55:04 +0000
(18:55 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 28 Jun 1996 18:55:04 +0000
(18:55 +0000)
src/indent.c
patch
|
blob
|
history
diff --git
a/src/indent.c
b/src/indent.c
index 60641ae54dc57b0291f7685ba30bd1d70cff9020..d77219484b7b5a324954b1f4752cce1d68cc58d8 100644
(file)
--- a/
src/indent.c
+++ b/
src/indent.c
@@
-693,7
+693,7
@@
The return value is the current column.")
col = 0;
}
- while (
col < goal &&
pos < end)
+ while (pos < end)
{
while (pos == next_boundary)
{
@@
-702,6
+702,12
@@
The return value is the current column.")
goto endloop;
}
+ /* Test reaching the goal column. We do this after skipping
+ invisible characters, so that we put point before the
+ character on which the cursor will appear. */
+ if (col >= goal)
+ break;
+
c = FETCH_CHAR (pos);
if (dp != 0 && VECTORP (DISP_CHAR_VECTOR (dp, c)))
{